package com.zou.practice.rpc;

import lombok.Data;

import java.io.Serializable;

/**
 * 消息传递载体
 *
 * @author zou
 */
@Data
public class TransportMessage implements Serializable {
    /**
     * 包名+接口名称
     */
    private String interfaceName;
    /**
     * 调用方法名
     */
    private String methodName;
    /**
     * 参数类型 按照接口参数顺序
     */
    private Class<?>[] paramsTypes;
    /**
     * 参数  按照接口参数顺序
     */
    private Object[] parameters;

    public TransportMessage(String interfaceName, String methodName,
                            Class<?>[] paramsTypes, Object[] parameters) {
        super();
        this.interfaceName = interfaceName;
        this.methodName = methodName;
        this.paramsTypes = paramsTypes;
        this.parameters = parameters;
    }

}